﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="list.aspx.cs" Inherits="WebUI.library.list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <table align="center" border="0">
        <tr>
            <td>
            
                <asp:GridView ID="GV" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" DataKeyNames="ID" 
                    onrowdeleting="GV_RowDeleting">
                    <Columns>
                        <asp:BoundField DataField="Name" HeaderText="Name" />
                        <asp:BoundField DataField="URL" HeaderText="URL" />
                        <asp:BoundField DataField="CreationDate" HeaderText="Creation Date" />
                        <asp:CheckBoxField DataField="IsReadonly" HeaderText="Read only" />
                        <asp:CheckBoxField DataField="IsApprovalRequired" HeaderText="Need Approaval" />
                        <asp:CheckBoxField DataField="IsVersioningEnabled" 
                            HeaderText=" Versioning Enabled" />
                        <asp:HyperLinkField DataNavigateUrlFields="ID" 
                            DataNavigateUrlFormatString="permission.aspx?id={0}" Text="Permission" />
                        <asp:HyperLinkField DataNavigateUrlFields="ID" 
                            DataNavigateUrlFormatString="add.aspx?id={0}" Text="Edit" />
                        <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                    CommandName="Delete" Text="Delete" OnClientClick="return confirm('Are you sure?');"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
